<include file="__PUBLIC__/header"/>

<script src="__PUBLIC__/js/jquery.cxselect.js"></script>
<body>

<form action="{|addon_url:add}" method="post">
<div id="element_id">
  <select class="province" name="sheng"></select>
  <select class="city" name="city"></select>
</div>

<input type="submit" name="submit" value="添加" class="hd-btn hd-btn-primary"> 
</form>
<script type="text/javascript">
	$('#element_id').cxSelect({
  url: '__PUBLIC__/js/cityData.min.json',               // 如果服务器不支持 .json 类型文件，请将文件改为 .js 文件
  selects: ['province', 'city'],  // 数组，请注意顺序
  emptyStyle: 'none'
});
</script>
</body>
</html>